from .models import Contents
from rest_framework import serializers


class ContentsSerializer(serializers.ModelSerializer):
    class Meta:
        model = Contents
        fields = ['title', 'author', 'detail', 'img', 'add_time']







